<tr>
    <td bgcolor="#e4e4e4">短链接地址</td>
    <td bgcolor="#e4e4e4">信息页</td>
    <td bgcolor="#e4e4e4">原链接地址</td>
    <td bgcolor="#e4e4e4">操作</td>
</tr>
<?php if (is_array($rs)): ?>
<script type="text/javascript" src="<?php echo $this->root;?>/theme/default/u22/js/ZeroClipboard.js"></script>
<?php foreach ($rs as $key => $value): ?>
        <tr id="act_1_<?php echo $key; ?>">
            <td><input id="copy_<?php echo $value['sina_url'];?>" value="http://t.cn/<?php echo $value['sina_url']; ?>" type="hidden">http://t.cn/<?php echo $value['sina_url']; ?><span class="copy" id="copy_button_<?php echo $value['sina_url'];?>"><a href="#" >复制</a></span></td>
            <td><a href="http://u22.cc/<?php echo $value['uhash']; ?>+"><?php echo $value['uhash']; ?>+</a></td>
            <td><?php echo $value['url']; ?></td>
            <td><span class="more"><a href="javascript:showHideTr(<?php echo $key; ?>);">更多&nbsp;<img src="<?php echo $this->webroot . '/theme/default/u22/images'; ?>/more.gif" /></a></span></td>
        </tr>
        
        <tr id="act_2_<?php echo $key; ?>" class="hidden_s">
            <td colspan="4">
                <span>
                    <input type="hidden" value="http://url.cn/<?php echo $value['tencent_url']; ?>" id="copy_<?php echo $value['tencent_url'];?>" />
                    http://url.cn/<?php echo $value['tencent_url']; ?><span class="copy" id="copy_button_<?php echo $value['tencent_url']; ?>"><a href="#">复制</a></span>
                </span>
                
                <input type="hidden" value="http://www.u22.cc/<?php echo $value['uhash']; ?>" id="copy_<?php echo $value['uhash']; ?>" />
                &nbsp;&nbsp;http://www.u22.cc/<?php echo $value['uhash']; ?><span class="copy" id="copy_button_<?php echo $value['uhash']; ?>"><a href="#">复制</a></span>
            </td>
        </tr>
        <script>
            var clip_sina;
            var clip_tencent;
            var u22;
            clip_sina = new ZeroClipboard.Client();
            clip_sina.setHandCursor( true );
            clip_sina.glue( 'copy_button_<?php echo $value['sina_url'];?>');
            clip_sina.setText( $('#copy_<?php echo $value['sina_url'];?>').val());
            clip_sina   = null;


            clip_sina = new ZeroClipboard.Client();
            clip_sina.setHandCursor( true );
            clip_sina.glue( 'copy_button_<?php echo $value['uhash'];?>');
            clip_sina.setText( $('#copy_<?php echo $value['uhash'];?>').val());
            clip_sina =null;
            clip_sina = new ZeroClipboard.Client();
            clip_sina.setHandCursor( true );
            clip_sina.glue('copy_button_<?php echo $value['tencent_url'];?>');
            clip_sina.setText( $('#copy_<?php echo $value['tencent_url'];?>').val());
            
        </script>
<?php endforeach; ?>
        <script>
        $(".hidden_s").hide();
    </script>
<?php endif; ?>